<!--
Computer Science Course 531 - Introduction to Software Engineering
Olive Insurance Client Management System (Client Database Access)
Version 1.0 (Base System)
Spring 2011

-- Source Code Details --
Page Tile: getCoverageTypeList.php
Created By: David Gonzalez, Computer Science (Undergraduate)
Documented By: Darrius Serrant, Computer Science (Undergraduate)
Purpose: Simple script that retrieves a list of all of the coverage types in the database.
Status: Completed.
-->
<?php
    $query = "SELECT * FROM coverage";
    $found = mysqli_query($dbc, $query) or die("Error");

            while($data = mysqli_fetch_array($found)){
               if($row['Type'] == $data['Name']){
                echo '<option selected value="'.$data['Name'].
                '">'.$data['Name'].'</option>';
                }else
                echo '<option value="'.$data['Name'].
                '">'.$data['Name'].'</option>';

            }

?>

